package com.org.gameloft.GLIDER.common;

import java.util.Properties;
import java.util.Enumeration;
import java.util.Vector;
import java.util.Collections;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Aug 1, 2007
 * Time: 1:57:06 PM
 * Revision: 0
 */
public class SortedProperties extends Properties
{
    public synchronized Enumeration keys()
    {
        Enumeration keysEnum = super.keys();
        Vector keyList = new Vector();
        while (keysEnum.hasMoreElements())
        {
            keyList.add(keysEnum.nextElement());
        }
        Collections.sort(keyList);
        return keyList.elements();
    }
}
